package com.smx.xname.util;

import java.io.IOException;
import java.io.File;

/**
 * Created by IntelliJ IDEA.
 * User: Greg
 * Date: Sep 4, 2007
 * Time: 9:41:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class Directory {

    /**
	 *
	 * @return path of the application
	 */
	public static String getApplicationPath() {
		File appPath = new File(Directory.class.getCanonicalName());
		try {
			appPath = appPath.getCanonicalFile().getParentFile();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return appPath.toString();
	}
}
